export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: false },
  devServer: {
    port: 80,
    host: '0.0.0.0'
  },
  experimental: {
    asyncContext: true,
    componentIslands: true,
    payloadExtraction: true

  },
  plugins: [
    '~/plugins/element-plus.client.ts'
  ],
  routeRules: {
    '/**': { ssr: true },  // 全量SSR

  },
  runtimeConfig: {
    // 公共环境变量
    public: {
      baseUrl: process.env.NUXT_PUBLIC_BASE_API,
    }
  },
  modules: [
    '@element-plus/nuxt',

  ],

  elementPlus: {
    importStyle: 'css',
    icon: 'ElIcon'
  },
  css: [
    'element-plus/dist/index.css',
    '~/assets/styles/element/index.css',
    '~/assets/css/style.css',
  ]
})

